From a3b519a9b55b19f3d7335915370e0b1ba5569988 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 30 May 2006 12:28:46 +0100 Subject: [PATCH] [BALLOON] Remove the static lower bound on memory target from balloon driver. Experimentation an discussion on xen-devel concludes that a dynamic method for determining safe balloon size will be required. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c index a1c2ea9d55..b4ef5c1646 100644 --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c @@ -360,12 +360,6 @@ static void balloon_process(void *unused) /* Resets the Xen limit, sets new target, and kicks off processing. */ static void set_new_target(unsigned long target) { - unsigned long min_target; - - /* Do not allow target to reduce below 2% of maximum memory size. */ - min_target = max_pfn / 50; - target = max(target, min_target); - /* No need for lock. Not read-modify-write updates. */ hard_limit = ~0UL; target_pages = target; -- 2.30.2